package io.itit.ecp.admin.common.enums;

import io.itit.grass.common.enums.IBaseEnum;

import java.io.Serializable;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：预警阈值
 * @Date：Create by 2023-12-04 14:51:04
 */
public interface IEarlyWarningThresholdEnums {

	/* 判断规则(1:大于等于,2:小于等于) */
	enum JudgeRule implements IBaseEnum {
		judgeRule1("1", "大于等于"),
		judgeRule2("2", "小于等于");

		public final String judgeRule;
		public final String desc;

		JudgeRule(String judgeRule, String desc) {
			this.judgeRule = judgeRule;
			this.desc = desc;
		}

		@Override
		public Serializable getValue() {
			return judgeRule;
		}

		@Override
		public String getDesc() {
			return desc;
		}
	}

	/* 预警级别(1:红色预警(一级),2:橙色预警(二级),3:黄色预警(三级)) */
	enum ThresholdLevel implements IBaseEnum {
		thresholdLevel1("1", "红色预警(一级)"),
		thresholdLevel2("2", "橙色预警(二级)"),
		thresholdLevel3("3", "黄色预警(三级)");

		public final String thresholdLevel;
		public final String desc;

		ThresholdLevel(String thresholdLevel, String desc) {
			this.thresholdLevel = thresholdLevel;
			this.desc = desc;
		}

		@Override
		public Serializable getValue() {
			return thresholdLevel;
		}

		@Override
		public String getDesc() {
			return desc;
		}
	}

}
